import { BASE_URL } from '@/utils/urls'
import Taro from '@tarojs/taro'

// 开始训练
export const sendMqtt = async () => {
    const res = await Taro.request({
        url: `${BASE_URL}/start`,
        method: 'GET',
    })
    return res.data
}
// 结束训练
export const stopMqtt = async () => {
    const res = await Taro.request({
        url: `${BASE_URL}/stop`,
        method: 'GET',
    })
    return res.data
}
